<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="google-site-verification" content="yaeorbXgKPwp5BDegBtAJEHYWFEFE-BViWTj74gJPrw" />
<!--  -->
<link href="/css/default.css" type="text/css" rel="stylesheet" />
<!--  -->
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/lang/cn.js"></script>
<script type="text/javascript" src="/js/mac/core.min.js"></script>
<title>JQuery MagicTabs 的基本使用</title>
<meta name="description" content="JQuery MagicTabs 的基本使用" />
<meta name="keywords" content="JQuery Menu Plugin" />
<script type="text/javascript" src="/js/mac/webapp.min.js"></script>
<script type="text/javascript" src="/js/mac/contextMenu.min.js"></script>
<link href="/css/default/mac/menu/menu.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/mac/menu.min.js"></script>
<script type="text/javascript">
$(function(){
	$('#nav_jump').change(function(){
		location = './' + this.value + '.html';
	}).val('basic');
	$('.demoSource').val($('#demo').html());
});
</script>
</head>
<body>
<div id="head">
	<a href="/"><img src="/css/images/logo_s.png" alt="logo" /></a>
	<div class="title">BOARSOFT.COM</div>
	<div class="right">
		<div>
			<a href="/public/lang.php?l=en">English</a>
			|
			<a href="/public/lang.php?l=cn">简体中文</a>
			|
			<a href="http://activemq.apache.org/" target="_blank">ActiveMQ</a>
			|
			<a href="https://redis.io/" target="_blank">Redis</a>
			|
			<a href="http://www.jquery.com/" target="_blank">JQuery</a>
		</div>
	</div>
</div><div id="nav">
	<div id="nav_path">
		&nbsp;&nbsp;
		<a href="/">Home</a>
		&gt;
		<a href="/mac/js">Javascript</a>
		&gt;
		<a href="/mac/js/menu">JQuery MagicMenu</a>
		&gt;
		JQuery MagicMenu 基础示例	</div>
	<div id="nav_back">
		<a href="/mac/js/menu/doc" target="_blank">文档</a>
		|
		<a href="javascript:history.back()">后退</a>
		|
		<a href="/mac/js#menu">下载</a>
		|
		<select id="nav_jump">
			<option value="basic">JQuery MagicMenu 基础示例</option>
			<option value="context">JQuery MagicMenu 右键菜单</option>
			<option value="custom1">自定义样式1</option>
			<option value="custom2">自定义样式2</option>
		</select>
		&nbsp;&nbsp;
	</div>
	<div class="clear"></div>
</div>
<div class="demoInfo">
	<h2 class="demoTitle">JQuery MagicMenu 基础示例</h2>
</div>
<div id="demo" class="demoPanel"><style type="text/css">
#menuDemo li .a { word-spacing: 32px; color: #FF00FF; }
</style>
<script type="text/javascript">
$(function(){
	var mu = $('#menuDemo').mac('menu', {
		children: [{
			title: 'Auto width, support EN/CN  如果有中文?',
			action : 'itemA',
			icon: 'icon-newwin',
			children: [{
				title : 'No icon',
				action : 'itemA1'
			},{
				title : 'Can?',
				action : 'itemA2',
				icon: 'icon-newwin'
			}]
		},{
			title : 'This item has submenu',
			icon: 'icon-newwin',
			children: [{
				title : 'No icon',
				action : 'itemB1',
				children: [{
					title : 'No icon',
					action : 'itemB1A'
				},{
					title : '如果有中文？',
					action : 'itemB2A',
					icon: 'icon-newwin',
					children: [{
						title : 'No',
						action : 'itemB1A1'
					},{
						title : 'Yes 如果有中文？ 如果有中文？',
						action : 'itemB2A2',
						icon: 'icon-newwin'
					}]
				}]
			},{
				title : 'Can change CSS',
				action : 'itemB2',
				style: 'a',
				icon: 'icon-newwin'
			}]
		}]
	});
	$('#menuBtn').contextMenu({
		menu : mu,
		button: 1,//3: right click, 1: left click
		onPopup : function(el) {
			//onPopup event
		},
		anchor: 'el',//Notice here!
		offset: { x: 1, y: 20 }
	}, function(action, el, pos) {
		alert(action);
		return false;
	});
});
</script>
<button id="menuBtn">Click Me</button>
<ul id="menuDemo" class="contextMenu"></ul></div>
<textarea class="demoSource" wrap="off"></textarea>
<iframe src="/mac/js/related.php" class="related"></iframe>
<div id="foot">
Copyright © 2011. All rights reserved&nbsp;&nbsp;蜀ICP备11014774号-1&nbsp;&nbsp;
QQ: 7213571&nbsp;&nbsp;E-mail: pyh_jerry@163.com&nbsp;&nbsp;
<!-- 
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ffc0b0282216be3d16055855d8c0e72d9' type='text/javascript'%3E%3C/script%3E"));
</script>
&nbsp;&nbsp;
 -->
</div></body>
</html>
